package roy.abc.study.WebServices.JavaWSUpAndRunning.ch01.ts;

import javax.xml.ws.Endpoint;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TimeServerPublisher {

	private static Logger logger = LoggerFactory.getLogger(TimeServerPublisher.class);
	/**
	 * @param args
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws InterruptedException {
		logger.debug("Server starting...");

		Endpoint.publish("http://127.0.0.1:9876/ts", new TimeServerImpl());
		logger.debug("Server ready...");
		
		Thread.sleep(1 * 60 * 1000);
		logger.debug("Server exiting");
		System.exit(0);
	}
}
